﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Xc.DataAccess.Core;
using Xc.DataAccess.OneNetCore.Services;

namespace Xc.Logics.OneNet.ViewModels
{
    public class MasterViewModel:ViewModelBase
    {
        ObservableCollection<NbDeviceInfo> devices = new ObservableCollection<NbDeviceInfo>();
        public ObservableCollection<NbDeviceInfo> Devices
        {
            get => devices;
            set
            {
                if (devices == value)
                {
                    return;
                }

                devices = value;
                RaisedPropertyChanged();
            }
        }
        NbDeviceInfo selectItem;
        public NbDeviceInfo SelectItem
        {
            get => selectItem;
            set
            {
                if (selectItem == value)
                {
                    return;
                }

                selectItem = value;
                RaisedPropertyChanged();
            }
        }
    }
}
